package com.css.zfzx.sjcj.modules.drill.Entity;

import cn.afterturn.easypoi.excel.annotation.Excel;

import javax.persistence.*;
import java.util.Objects;

/**
 * @Description:
 * @Author: Li Helei
 * @CreateDate: 2021/1/18 10:33
 * @Version: 1.0
 **/
@Entity
@Table(name = "qh_y06", schema = "base", catalog = "")
public class QhY06Entity {
    private String id;
    @Excel(name = "序号",orderNum = "1")
    private Integer code;
    @Excel(name = "岩土性名称",orderNum = "2")
    private String geotechnicalDesignation;
    @Excel(name = "层底深度 (m)",orderNum = "3")
    private Double bottomDepth;
    @Excel(name = "层厚(m)",orderNum = "4")
    private Double layerThickness;
    @Excel(name = "剪切波波速V(m/s)",orderNum = "5")
    private Double shearWaveVelocity;
    private String isValid;
    private String drillId;

    @Id
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "code")
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Basic
    @Column(name = "geotechnical_designation")
    public String getGeotechnicalDesignation() {
        return geotechnicalDesignation;
    }

    public void setGeotechnicalDesignation(String geotechnicalDesignation) {
        this.geotechnicalDesignation = geotechnicalDesignation;
    }

    @Basic
    @Column(name = "bottom_depth")
    public Double getBottomDepth() {
        return bottomDepth;
    }

    public void setBottomDepth(Double bottomDepth) {
        this.bottomDepth = bottomDepth;
    }

    @Basic
    @Column(name = "layer_thickness")
    public Double getLayerThickness() {
        return layerThickness;
    }

    public void setLayerThickness(Double layerThickness) {
        this.layerThickness = layerThickness;
    }

    @Basic
    @Column(name = "shear_wave_velocity")
    public Double getShearWaveVelocity() {
        return shearWaveVelocity;
    }

    public void setShearWaveVelocity(Double shearWaveVelocity) {
        this.shearWaveVelocity = shearWaveVelocity;
    }

    @Basic
    @Column(name = "is_valid")
    public String getIsValid() {
        return isValid;
    }

    public void setIsValid(String isValid) {
        this.isValid = isValid;
    }

    @Basic
    @Column(name = "drill_id")
    public String getDrillId() {
        return drillId;
    }

    public void setDrillId(String drillId) {
        this.drillId = drillId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        QhY06Entity that = (QhY06Entity) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(code, that.code) &&
                Objects.equals(geotechnicalDesignation, that.geotechnicalDesignation) &&
                Objects.equals(bottomDepth, that.bottomDepth) &&
                Objects.equals(layerThickness, that.layerThickness) &&
                Objects.equals(shearWaveVelocity, that.shearWaveVelocity) &&
                Objects.equals(isValid, that.isValid) &&
                Objects.equals(drillId, that.drillId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, code, geotechnicalDesignation, bottomDepth, layerThickness, shearWaveVelocity, isValid, drillId);
    }
}
